package com.lemon.file.domain;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.lemon.common.core.serializer.JsonLongDeserializer;
import com.lemon.common.core.serializer.JsonLongSerializer;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.lemon.common.core.annotation.Excel;
import com.lemon.common.core.web.domain.TreeEntity;

/**
 * 文件夹管理对象 bi_file_folder
 * 
 * @author huangpeng
 * @date 2022-12-18
 */
public class BiFileFolder extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 唯一id */
    @JsonSerialize(using = JsonLongSerializer.class)
    @JsonDeserialize(using = JsonLongDeserializer.class)
    private Long id;

    /** 文件夹名称 */
    @Excel(name = "文件夹名称")
    private String folderName;

    /** 文件夹编码 */
    @Excel(name = "文件夹编码")
    private String folderCode;

    /** 父文件夹编码 */
    @Excel(name = "父文件夹编码")
    private String parentCode;

    /** 完整文件夹编码路径 */
    @Excel(name = "完整文件夹编码路径")
    private String pathCode;

    /** 完整文件夹名称路径 */
    @Excel(name = "完整文件夹名称路径")
    private String pathName;

    /** 是否删除，0否1是 */
    private String delFlag;

    /**
     * 排序序号
     */
    private Integer orderNum;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setFolderName(String folderName) 
    {
        this.folderName = folderName;
    }

    public String getFolderName() 
    {
        return folderName;
    }
    public void setFolderCode(String folderCode) 
    {
        this.folderCode = folderCode;
    }

    public String getFolderCode() 
    {
        return folderCode;
    }
    public void setParentCode(String parentCode) 
    {
        this.parentCode = parentCode;
    }

    public String getParentCode() 
    {
        return parentCode;
    }
    public void setPathCode(String pathCode) 
    {
        this.pathCode = pathCode;
    }

    public String getPathCode() 
    {
        return pathCode;
    }
    public void setPathName(String pathName) 
    {
        this.pathName = pathName;
    }

    public String getPathName() 
    {
        return pathName;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public Integer getOrderNum() {
        return orderNum;
    }

    @Override
    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("folderName", getFolderName())
            .append("folderCode", getFolderCode())
            .append("parentCode", getParentCode())
            .append("pathCode", getPathCode())
            .append("pathName", getPathName())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .append("orderNum", getOrderNum())
            .toString();
    }
}
